Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
npm install webtouch
Validate that a web site and all its required resources are available.
var webtouch = require('webtouch')
webtouch('http://www.google.com', function (e, urls) {
if (e) throw e
console.log(urls)
})
The website will be parsed and all the resources in the html will be touched via an HTTP GET.
There's also an event emitter returned that you can use to monitor.
webtouch('http://www.google.com').on('get', function (url) {console.log("fetching", url)})
urls
Either a string for a single url or an array of urls.opts
timeout
A timeout in millisecond for each GET, this is not a timeout for the entire crawl.img
Fetch images, defaults to true
.meta
Fetch images in meta tags where itemprop === "image"
, defaults to true
.script
Fetch scripts, defaults to true.a
Fetch and parse links, defaults to false
. This method is dangerous since it basically turns webtouch in to a crawler that could potentially never return.cb
function (error, urls) {}
returns all of the urls that have been touched.get
function (url){}
The url that is about to be touched.resp
function (response, url){}
The http.ClientResponse object and url that was just touched.FAQs
Validate that a web site and all its required resources are available.
The npm package webtouch receives a total of 2 weekly downloads. As such, webtouch popularity was classified as not popular.
We found that webtouch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.